﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SNSpirit.Domain
{
    public abstract class DomainService
    {
        protected virtual void OnBackgroundJobErrorOccurred(Exception error)
        {
            if (this.BackgroundJobErrorOccurred != null)
                this.BackgroundJobErrorOccurred(this, new BackgroundJobErrorOccurredEventArgs(error));
        }

        public event EventHandler<BackgroundJobErrorOccurredEventArgs> BackgroundJobErrorOccurred;
    }
}
